package com.qf.exception;

import com.qf.enums.ResultEnums;
import lombok.Data;

@Data
public class AirException extends RuntimeException {

    private Integer code;
    private String msg;

    public AirException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public AirException(ResultEnums resultEnums){
        this.code = resultEnums.getCode();
        this.msg = resultEnums.getMsg();
    }

}
